package com.itheima.service;

import com.itheima.dao.OrderDao;
import com.itheima.domain.Order;
import org.springframework.jdbc.datasource.DataSourceTransactionManager;
import org.springframework.stereotype.Service;
import org.springframework.transaction.PlatformTransactionManager;
import org.springframework.transaction.TransactionDefinition;
import org.springframework.transaction.TransactionStatus;
import org.springframework.transaction.support.DefaultTransactionDefinition;

import javax.sql.DataSource;
import java.util.List;

/**
 * @author itheima
 * @since 2021-10-25
 */
@Service("orderService")
public class OrderServiceImpl implements OrderService {

    private OrderDao orderDao;

    private DataSource dataSource;

    public List<Order> getList(Order order) throws Exception {
        System.out.println("1234");
        throw new Exception("123");
    }
}
